<div class="mainBody-box-bg1">
<div>
	<form method="get" id="formSearch" action="">
		<div class="left">
        	商家名称：<input style="width:150px;" type="text" id="txt_shop_name" value="{$shop_name}" name="txt_shop_name" />
        </div>
		<div class="left" style="padding-top:3px;">
			<a id="searchButton" onclick="$('#formSearch').submit();" class="buttonStyle"><span></span>搜 索</a>
		</div>
	</form>
	</div>
</div>

<div class="list-div" id="listDiv">
<form method="post" id="listForm" action="?{$pageUrl}">
<table cellspacing='1' cellpadding='1' id='list-table' bgcolor="#cccccc" width="100%" class="table1">
  <tr>
  	<th height="40" align="left">
  		商家简称</th>        
    <th>产品名称</th>
    <th width="80px">所属类别</th>
    <th>产品图片</th>
    <th width="120px"><div class="left"><a class="buttonStyle" onclick="listForm.submit();" id="btnSubmit" ><span></span>保存排序</a></div></th>
    <th width="80px">操作</th>
  </tr>
  {foreach from=$list item=list}
  <tr>
  	<td align="left" height="40">
  	{$list.shop_simple_name}</td>
    <td align="left">{$list.p_name}</td>
    <td>
    {if $list.p_type eq 1}衣{elseif $list.p_type eq 2}食{elseif $list.p_type eq 3}娱
    {elseif $list.p_type eq 4}养{elseif $list.p_type eq 5}行{elseif $list.p_type eq 6}学{elseif $list.p_type eq 7}商超{/if}
    </td>
    <td align="center"><img width="120px" src="{$list.pic_path}" /></td>
    <td><input type="text" value="{$list.sort_num}" name="txtSort-{$list.p_id}" class="txtSort"
						id="txtSort-{$list.p_id}" /></td>
    <td align="center">
    	{if $list.is_top eq 0}
    	<a href="{$manageDomain}shopProductManage/setTop/?{$pageUrl}&id={$list.p_id}&istop=1">设为推荐</a>
    	{else}
    	<a href="{$manageDomain}shopProductManage/setTop/?{$pageUrl}&id={$list.p_id}&istop=0">取消推荐</a>
    	{/if}
    	<a href="{$manageDomain}shopProductManage/edit/?id={$list.p_id}" title="编辑">编辑</a>
     </td>
  </tr>
  {/foreach}
  <tr>
    <th align="right" colspan="6">{$pageStr}</th>
  </tr>
</table>
</form>
</div>
